package org.yxt.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.yxt.springcloud.entities.CommonResult;
import org.yxt.springcloud.service.fallback.SentinelPaymentFallbackImpl;

@FeignClient(value = "cloud-alibaba-sentinel-provider-payment", fallback = SentinelPaymentFallbackImpl.class)
public interface SentinelPaymentService {

    /**
     * 使用openFeign请求
     *
     * @param number
     * @return
     */
    @GetMapping(value = "/sentinel/fallback/{number}")
    CommonResult getFallBackVal(@PathVariable("number") int number);
}
